"""
@Time ： 2022/9/16 11:37
@Auth ： 陈杰 200320501042
@E-mail : 1612845322@qq.com
"""

def total(n):
    result = 0 #结果存储
    lb = "" #结果前端字符串
    for i in range(1,n + 1):
        result += i
        if i > 1:
            lb = lb + " + " + str(i)
        else:
            lb = str(i)
        print(lb + " = " + str(result))

if __name__ == '__main__':
    total(20)

# count=1
# sum=1
# a=""
# b="1"
# print(b + " = " + b)
# while count<20:
#     count+=1
#     a=" + "+str(count)
#     sum=sum+count
#     b=b+a
#     print(b+" = "+str(sum))
